package com.gitee.elf.api.nms

import org.bukkit.Location
import org.bukkit.entity.Entity
import org.bukkit.entity.EntityType

class BukkitEntityTypeManager : EntityTypeManager {

    override val types: MutableMap<String, Class<NMSEntity>> = mutableMapOf()

    override fun create(location: Location,instance: Any, type: String): Entity? {
        return location.world?.spawnEntity(location, EntityType.valueOf(type.uppercase()))
    }

    override fun registerEntity(id: String, bind: EntityType, entity: Class<NMSEntity>) {

    }


}